//
//  FSwitch.h
//  go5
//
//  Created by 袁飞 on 12-7-22.
//
//

#import <Foundation/Foundation.h>
#import "FControl.h"

@interface FSwitch : FControl{
  CCSprite  *sprite_on_;
  CCSprite  *sprite_off_;
  bool      ison_;
}
@property (nonatomic, readwrite) bool ison;

-(id)initWithOn:(NSString*)on Off:(NSString*)off;
-(void)onTouchDown:(CGPoint)point;
-(CGRect)getControlRect;
@end
